/* Tag Component Styles */
.myui-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  height: 24px;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
  border-radius: var(--border-radius, 4px);
  border: 1px solid;
  margin-right: 8px;
  transition: all 0.3s;
  cursor: default;
}

.myui-tag-close-icon {
  display: inline-block;
  font-size: 12px;
  transform: scale(0.8);
  margin-left: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.myui-tag-close-icon:hover {
  color: var(--text-primary);
}

/* Variants */
.myui-tag-default {
  background-color: var(--bg-secondary, #fafafa);
  border-color: var(--border-color, #d9d9d9);
  color: var(--text-primary, rgba(0, 0, 0, 0.85));
}

/* Colors */
.myui-tag-blue {
  color: #1890ff;
  background: #e6f7ff;
  border-color: #91d5ff;
}

.myui-tag-green {
  color: #52c41a;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.myui-tag-red {
  color: #ff4d4f;
  background: #fff1f0;
  border-color: #ffa39e;
}

.myui-tag-orange {
  color: #fa8c16;
  background: #fff7e6;
  border-color: #ffd591;
}

.myui-tag-purple {
  color: #722ed1;
  background: #f9f0ff;
  border-color: #d3adf7;
}

/* Dark Mode Support */
[data-theme='dark'] .myui-tag-default {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme='dark'] .myui-tag-blue {
  background: rgba(24, 144, 255, 0.15);
  border-color: rgba(24, 144, 255, 0.3);
}

[data-theme='dark'] .myui-tag-green {
  background: rgba(82, 196, 26, 0.15);
  border-color: rgba(82, 196, 26, 0.3);
}

[data-theme='dark'] .myui-tag-red {
  background: rgba(255, 77, 79, 0.15);
  border-color: rgba(255, 77, 79, 0.3);
}

[data-theme='dark'] .myui-tag-orange {
  background: rgba(250, 140, 22, 0.15);
  border-color: rgba(250, 140, 22, 0.3);
}

[data-theme='dark'] .myui-tag-purple {
  background: rgba(114, 46, 209, 0.15);
  border-color: rgba(114, 46, 209, 0.3);
}

.myui-tag-input {
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
  padding: 0;
  margin: 0;
}
